//
//  BusinessCerCell.m
//  PASystem
//
//  Created by 刘沿 on 16/8/18.
//  Copyright © 2016年 czd. All rights reserved.
//

#import "BusinessCerCell.h"

@implementation BusinessCerCell

+(instancetype)WithBusinessCerCell{

    return [[[NSBundle mainBundle] loadNibNamed:@"BusinessCerCell" owner:nil options:nil] lastObject];
}

- (void)setModel:(BusinessCerModel *)model{
    _model = model;
    
    self.ENTERPRISENAME.text = model.ENTERPRISENAME;

    self.FILECODE.text = model.FILECODE;
    
    self.EMBASSYMONEY.text = model.EMBASSYMONEY;
    
    NSString *string = model.UPDATETIME;
    NSDateFormatter *fmt = [[NSDateFormatter alloc] init];
    fmt.dateFormat = @"MMM d, yyyy HH:mm:ss aa";
    fmt.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en-US"];
    NSDate *date = [fmt dateFromString:string];
    NSDateFormatter *fm = [[NSDateFormatter alloc] init];
    fm.dateFormat = @"yyyy-MM-dd";
    NSString *selfYear = [fm stringFromDate:date];

    self.UPDATETIME.text= selfYear;
}



@end
